import request from '@/utils/request'

// 查询用户收藏信息列表
export function listUserCollect(query) {
  return request({
    url: '/business/userCollect/list',
    method: 'get',
    params: query
  })
}

// 查询用户收藏信息详细
export function getUserCollect(detailId) {
  return request({
    url: '/business/userCollect/' + detailId,
    method: 'get'
  })
}

// 新增用户收藏信息
export function addUserCollect(data) {
  return request({
    url: '/business/userCollect',
    method: 'post',
    data: data
  })
}

// 修改用户收藏信息
export function updateUserCollect(data) {
  return request({
    url: '/business/userCollect',
    method: 'put',
    data: data
  })
}

// 删除用户收藏信息
export function delUserCollect(detailId) {
  return request({
    url: '/business/userCollect/' + detailId,
    method: 'delete'
  })
}
